import os
import matlab

os.popen("gnome-terminal -e 'bash -c \"cd /home/zhutao/linux-80211n-csitool-supplementary/netlink && gcc log_to_server.c -o log_to_server && sudo ./log_to_server 127.0.0.1 8090 ; exec bash\"'")
os.system("gnome-terminal -e 'ping 192.168.0.1 -i 0.5'")


#call(["python3", "/home/zhutao/PycharmProjects/pythonProject/get_csi/get_wifi.py"])
# run script by call()